Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


Getting Device Descriptors

The USBGetDeviceDescriptor function returns a pointer to the device descriptor of the specified device reference.

OSStatus USBGetDeviceDescriptor (
                     USBDeviceRef *deviceRef,
                     USBDeviceDescriptor *deviceDescriptor,
                     UInt32 size);

--> deviceRef
A pointer to the allocated device reference for which you want the device descriptor.
<-- deviceDescriptor
A pointer to the device descriptor.
--> size
Size of the descriptor. If the descriptor that is returned is larger than the requested size, a kUSBOverRunErr is returned and only the first size bytes of the descriptor are filled in.

© 1999 Apple Computer, Inc.

Previous | Back Up One Level | Next | Show Frames | Hide Frames